<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        window.onload = function(){
            let app = Vue.createApp({
                setup(){
                    let message = "hello vue"
                    let style = {"background-color":"yellow"}
                    let fun1 = function(){
                        alert("hello vue")
                    }

                    return{
                        message,
                        style,
                        fun1
                    }
                }
            })

            app.mount("#app")
        }
    </script>
</head>
<body>
    <div id="app">
        <h1 v-text="message" v-bind:style="style">hello</h1>
        <h1>{{message}}</h1>
        <button @click="fun1()">点我</button>
    </div>
    
</body>
</html>